package cn.jja8.config.tool.work.obj.common;

import java.util.ArrayList;
import java.util.List;

public class KeepLLong implements CommonKeep<long[]> {
    @Override
    public long[] in(Object con) {
        List<?> list = ((List<?>)con);
        long[] booleans = new long[list.size()];
        for (int i = 0; i < list.size(); i++) {
            booleans[i] = Long.parseLong(list.get(i).toString());
        }
        return booleans;
    }

    @Override
    public Object out(long[] s) {
        List list = new ArrayList(s.length);
        for (int i = 0; i < s.length; i++) {
            list.add(s[i]);
        }
        return list;
    }
}
